package com.titanrise.crm.common.enums;

import lombok.Getter;

@Getter
public enum TradeStatusEnum {

    PAID("已付款", 1),
    CONFIRM_DEAL("确认交易", 2);



    private final String msg;
    private final Integer status;

    TradeStatusEnum(String msg, Integer status) {
        this.msg = msg;
        this.status = status;
    }

    public static TradeStatusEnum valueOf(Integer i) {
        switch (i) {
            case 1:
                return PAID;
            case 2:
                return CONFIRM_DEAL;
            default:
                throw new RuntimeException("Invalid TradeStatusEnum value: " + i);
        }
    }
}
